package cn.iocoder.yudao.module.resource.controller.admin.advertisement.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 广告 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ResourceAdvertisementRespVO {

    @Schema(description = "广告ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("广告ID")
    private Long id;

    @Schema(description = "广告商ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1001")
    @ExcelProperty("广告商ID")
    private Long advertiserId;

    @Schema(description = "广告标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "新品上市")
    @ExcelProperty("广告标题")
    private String title;

    @Schema(description = "广告类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "广告类型", converter = DictConvert.class)
    @DictFormat("resource_advertisement_type")
    private Integer type;

    @Schema(description = "视频URL", example = "https://example.com/ad.mp4")
    @ExcelProperty("视频URL")
    private String videoUrl;

    @Schema(description = "视频时长（秒）", example = "30")
    @ExcelProperty("视频时长（秒）")
    private Integer duration;

    @Schema(description = "点击跳转URL", example = "https://example.com")
    @ExcelProperty("点击跳转URL")
    private String clickUrl;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("resource_advertisement_status")
    private Integer status;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("结束时间")
    private LocalDateTime endTime;

    @Schema(description = "日预算（元）", example = "100.00")
    @ExcelProperty("日预算（元）")
    private BigDecimal dailyBudget;

    @Schema(description = "总预算（元）", example = "10000.00")
    @ExcelProperty("总预算（元）")
    private BigDecimal totalBudget;

    @Schema(description = "观看次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000")
    @ExcelProperty("观看次数")
    private Integer viewCount;

    @Schema(description = "点击次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    @ExcelProperty("点击次数")
    private Integer clickCount;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
